<?php
require_once 'Zend.php';
function __autoload($className) {
	Zend::loadClass($className);
}

$config = new Zend_Config(Zend_Config_Xml::load('config.xml', 'production'));

Zend_Log::registerLogger(new Zend_Log_Adapter_File($config->general->logPath));
Zend_log::setMessagePrefix(strftime($config->general->logPrefix));

$cache = App_Cache::getInstance($config->cacheDir);

Zend::register('config',$config);

Zend_Controller_Front::getInstance()
	->setControllerDirectory($config->general->controllerPath)
	->dispatch();




?>